package edu.scau.mis.pos.entity;

import java.io.Serializable;
import java.util.List;

/**
 * (PosItem)实体类
 *
 * @author makejava
 * @since 2021-10-20 21:37:41
 */
public class PosItem implements Serializable {
    private static final long serialVersionUID = 684858235862975405L;

    /**
     * 产品ID
     */
    private Integer itemId;
    /**
     * 产品CODE
     */
    private String code;
    /**
     * 产品名称
     */
    private String itemName;
    /**
     * 价格
     */
    private Double price;
    /**
     * 产品类型
     */
    private Integer categoryId;

//    public String getQuantity() {
//        return quantity;
//    }
//
//    public void setQuantity(String quantity) {
//        this.quantity = PosOrderItem.quantity;
//    }
//
//    private String quantity;

    public String getInventory() {
        return inventory;
    }

    public void setInventory(String inventory) {
        this.inventory = inventory;
    }

    //产品库存
    private String inventory;


    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * 产品类型对象
     * category:product为1:N
     */
    private PosCategory category;

    public PosCategory getCategory() {
        return category;
    }

    public void setCategory(PosCategory category) {
        this.category = category;
    }

    public List<PosOrder> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<PosOrder> orderList) {
        this.orderList = orderList;
    }

    private List<PosOrder> orderList;

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    private String quantity;

    public List<PosOrderItem> getPosOrderItemList() {
        return posOrderItemList;
    }

    public void setPosOrderItemList(List<PosOrderItem> posOrderItemList) {
        this.posOrderItemList = posOrderItemList;
    }

    private List<PosOrderItem> posOrderItemList;


}

